package game;

import java.net.Socket;

/**
 * Paintball Player class
 * @author Twisty
 */
public class Player extends MovableGameObject {
	private String playerName; //Name of the player
	private Socket socket;
	
	/**
	 * @param x - x starting coordinate
	 * @param y - y starting coordinate
	 * @param playerName - name of the player
	 */
	public Player(int x, int y, String playerName, Socket socket) {
		super(x, y);
		this.playerName = playerName;
		//this.setImage("res/ball.png");
		this.setHeight(100);
		this.setWidth(100);
		this.socket = socket;
	}
	
	/**
	 * @return - returns the player name
	 */
	public String getPlayerName(){
		return this.playerName;
	}
	
	public Socket getSocket() {
		return this.socket;
	}
}
